package com.cy.dao;

import com.cy.pojo.Curd;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CurdDao {


    List<Curd> find(String name);

    @Delete("delete from  curd  where  id=#{id}")
    int deleteById(Integer id);

    int insertCurd(Curd curd);


    @Update("update curd set name=#{name},favorite=#{favorite},birthday=#{birthday},country=#{country},updateTime=#{now()} where id=#{id}")
    int updateBrand(Curd curd);
}
